import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';

@Component({
  selector: 'app-page404',
  templateUrl: './page404.component.html',
  styleUrls: ['./page404.component.css']
})
export class Page404Component implements OnInit {

  constructor(public route: ActivatedRoute, public router: Router) {
    this.route.params.subscribe((params) => {
      console.log(params);
    });
  }
  nId;
  ngOnInit(): void {
    // this.nId = sessionStorage.setItem('nId', '1');
    // sessionStorage.removeItem('nId');
  }
  backHome() {
    // this.router.navigate(['']);
    window.history.go(-1);
  }
}
